package com.jie.algorithm.thrid.eventbus;


import androidx.annotation.Keep;

/**
 * Created by ZDST-03 on 2018/2/6.
 * 定义eventBus的事件基类
 */
@Keep
public class Event<T> {

    private int code;
    private T data;

    public Event(int code) {
        this.code = code;
    }

    public Event(int code, T data) {
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
